package ooday05;
//访问修饰符的演示
public class Aoo {
    public int a;//所有类
    protected int b;//本类、子类、同包类
    int c;//本类、同包类
    private int d;//本类

    void show(){
        a=1;
        b=2;
        c=3;
        d=4;
    }
}
class Boo extends Aoo{
    public static void main(String[] args) {
        Aoo o = new Aoo();
        o.a=2;
        o.b=2;
        o.c=3;
//        o.d=4;
    }
}
